package image;

public class ImageGroup
{
    
    private Image[] mImages;
    
    
    public ImageGroup(int capacity)
    {
        this.mImages = new Image[capacity];
    }
    
    
    public void attach(int aIndex, Image aImage)
    {
        this.mImages[aIndex] = aImage;
    }
    
    public void detach(int aIndex)
    {
        this.mImages[aIndex] = null;
    }
    
    
    public Image1 image1(int aIndex)
    {
        return (Image1) this.mImages[aIndex];
    }
    
    public Image2 image2(int aIndex)
    {
        return (Image2) this.mImages[aIndex];
    }
    
    public Image3 image3(int aIndex)
    {
        return (Image3) this.mImages[aIndex];
    }
    
    public Image4 image4(int aIndex)
    {
        return (Image4) this.mImages[aIndex];
    }
    
    
}
